//
//  UIView+Common.h
//  car
//
//  Created by chenxu on 15/3/14.
//  Copyright (c) 2015年 chenxu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIBadgeView.h"
@interface UIView(Common)


+ (void)up:(UIView*)view length:(NSInteger)length;
+ (void)down:(UIView*)view;
+ (void)downWithTopBar:(UIView*)view;

- (void)addBadgeTip:(NSString *)badgeValue withCenterPosition:(CGPoint)center;
- (void)addBadgeTip:(NSString *)badgeValue;
- (void)removeBadgeTips;
- (void)setY:(CGFloat)y;
- (void)setX:(CGFloat)x;
- (void)setHeight:(CGFloat)height;
- (void)setWidth:(CGFloat)width;
- (void)setSize:(CGSize)size;
- (void)addGradientLayerWithColors:(NSArray *)cgColorArray;
- (void)addGradientLayerWithColors:(NSArray *)cgColorArray locations:(NSArray *)floatNumArray startPoint:(CGPoint )aPoint endPoint:(CGPoint)endPoint;
- (void)addLineUp:(BOOL)hasUp andDown:(BOOL)hasDown;
- (void)addLineUp:(BOOL)hasUp andDown:(BOOL)hasDown andColor:(UIColor *)color;
- (void)removeViewWithTag:(NSInteger)tag;
- (CGSize)doubleSizeOfFrame;

+ (CGRect)frameWithOutNavTab;
+ (CGRect)frameWithOutNav;
+ (UIViewAnimationOptions)animationOptionsForCurve:(UIViewAnimationCurve)curve;
+ (UIView *)lineViewWithPointYY:(CGFloat)pointY;
+ (UIView *)lineViewWithPointYY:(CGFloat)pointY andColor:(UIColor *)color;




@end
